{include file="header.tpl"}

<!-- start of main body -->
<div id="main">

<div id="main-top"></div>

<!-- start of process banner -->
<div id="banner">
	<span><a href="inbox.php">&lt;&lt; Inbox</a></span>
	<span class="headtitle">Process</span>
	<span><a href="treasure.php">Treasure &gt;&gt;</a></span>
</div>
<!-- end of process banner -->

<div id="main-middle">
	{if $tips_inbox_no_words}
	{$tips_inbox_no_words}
	{else}
	<div>
		<form action="process.php" method="post">
		<div><a title="{$defaultlink.key}" href="{$defaultlink.link}" target="_blank">{$defaultlink.key}</a></div>
		<div>
			<input type="hidden" name="id" value="{$default->getId()}" />
			<div>
				<span>Word:</span>
				<span>{$default->getKey()}</span>
				<input type="hidden" name="key" value="{$default->getKey()}" />
			</div>
			<div>
				<span>Phonetic Symbol:</span>
				{if $default->getPS() == ''}
				<span>Not Get It!</span>
				<input type="hidden" name="ps" value="" />
				{else}
				<span>[{$default->getPS()}]</span>
				<input type="hidden" name="ps" value="{$default->getPS()}" />
				{/if}
			</div>
			<div>
				<span>Pronunciation:</span>
				<span>
				{if ($default->getPron()) != ''}
					<a title="Pronunciation" href="#">
						<object width="160" height="20" id="dewplayer-mini" data="includes/player/dewplayer-mini.swf?mp3={$default->getPron()}" type="application/x-shockwave-flash">
							<param value="transparent" name="wmode">
							<param value="includes/player/dewplayer-mini.swf?mp3={$default->getPron()}" name="movie">
						</object>
					</a>
					<input type="hidden" name="pron" value="{$default->getPron()}" />
				{else}
					No Audio File!
					<input type="hidden" name="pron" value="" />
				{/if}
				</span>
			</div>
			<div>
				<span>Acceptation:</span>
				<span><textarea name="acceptation">{$default->getAcceptation()}</textarea></span>
			</div>
			<div>
				<span><input type="submit" name="process" value="Save" /></span>
				<span><input type="submit" name="process" value="Default" /></span>
				<span><input type="submit" name="process" value="Delete" /></span>
			</div>
		</div>
		</form>
	</div>
	<div>
		<div class="subtitle">Others Dictionaries</div>
		<hr>
		{foreach key=key item=result from=$otherresults}
		<!-- start of one search result -->
		<div>
			<span><a title="{$key}" href="{$dictsearchlinks[$key]}{$result->getKey()}" target="_blank">{$key}</a></span>
			<!-- one link example: http://www.iciba.com/theword -->
		</div>
		<div>
			<span>Word:</span>
			<span>{$result->getKey()}</span>
		</div>
		<div>
			<span>Phonetic Symbol:</span>
			{if $result->getPS() == ''}
			<span>Not Get It!</span>
			{else}
			<span>[{$result->getPS()}]</span>
			{/if}
		</div>
		<div>
			<span>Pronunciation:</span>
			<span>
				{if ($result->getPron()) != ''}
					<a title="Pronunciation" href="#">
						<object width="160" height="20" id="dewplayer-mini" data="includes/player/dewplayer-mini.swf?mp3={$result->getPron()}" type="application/x-shockwave-flash">
							<param value="transparent" name="wmode">
							<param value="includes/player/dewplayer-mini.swf?mp3={$result->getPron()}" name="movie">
						</object>
					</a>
				{else}
					No Audio File!
				{/if}
			</span>
			<span class="smalltips">{$prontips}</span>
		</div>
		<div>
			<span>Acceptation:</span>
			<span>{$result->getAcceptation()}</span>
		</div>
		<hr>
		<!-- end of one search result -->
		{foreachelse}
		<div>There is no results for this word.</div>
		{/foreach}
	</div>
	{/if}
</div>

<div id="main-bottom"></div>

</div>
<!-- end of main body -->

{include file="footer.tpl"}
